package com.ruoyi.work.mapper;

import java.util.List;
import com.ruoyi.work.domain.WorkOrder;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
 * 工单Mapper接口
 * 
 * @author xwj
 * @date 2024-08-13
 */
@Mapper
public interface WorkOrderMapper extends BaseMapper<WorkOrder> {
    /**
     * 查询工单
     * 
     * @param id 工单主键
     * @return 工单
     */
    public WorkOrder selectWorkOrderById(Long id);

    /**
     * 查询工单列表
     * 
     * @param workOrder 工单
     * @return 工单集合
     */
    public List<WorkOrder> selectWorkOrderList(WorkOrder workOrder);


    /**
     * 删除工单
     * 
     * @param id 工单主键
     * @return 结果
     */
    public int deleteWorkOrderById(Long id);

    /**
     * 批量删除工单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWorkOrderByIds(Long[] ids);
}
